<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function(){
		new SWFUpload({
			flash_url : "swfupload/swfupload.swf",
			upload_url: "p.shtm?method=getCodeInfo",
			post_params: {"id" : ""},
			file_size_limit : "100 MB",
			file_types : "*.txt",
			file_types_description : "条形码文件",
			file_upload_limit : 100,
			file_queue_limit : 0,
			debug: false,
			button_image_url : "images/SmallSpyGlassWithTransperancy_17x18.png",
			button_placeholder_id : "spanButtonPlaceholder",
			button_width: 180,
			button_height: 18,
			button_text : '<span class="button">选择文件</span>',
			button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
			button_text_top_padding: 0,
			button_text_left_padding: 18,
			button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
			button_cursor: SWFUpload.CURSOR.HAND,
			file_dialog_complete_handler : fileDialogComplete,
			upload_start_handler : uploadStart,
			upload_progress_handler : uploadProgress,
			upload_error_handler : uploadError,
			upload_success_handler : function(file, serverData) {
				$("#jt_codeWrit_textarea").val(serverData);
			},
			upload_complete_handler : uploadComplete
		});
	});
</script>
<table width="100%" height="300px">
	<tr class="list-tr" colspan="2">
		<td align="center" width="180px">
			<div
				style="display: inline; border: solid 1px #7FAAFF; background-color: #C5D9FF; padding: 2px;">
				<span id="spanButtonPlaceHolder"></span>
			</div>
		</td>
	</tr>
	<tr height="">
		<td colspan="2">
			<textarea style="width: 95%;height: 80%" id="jt_codeWrit_textarea"></textarea>
		</td>
	</tr>
</table>
